package model

import (
	"gorm.io/gorm"
)

type User struct {
	gorm.Model
	Account  string `gorm:"not null"`
	Password string `gorm:"not null"`
	Username string
	Describe string
	AvatarId int64
	Type     int8 `gorm:"not null"`
	Status   int8 `gorm:"not null"` // 1 正常 2 待审核 3 禁用
}

func (u *User) TableName() string {
	return "user"
}
